package red.stu.mc.api;

import java.util.HashMap;

import javax.annotation.Nullable;

import net.minecraft.block.Block;
import net.minecraft.block.state.IBlockState;
import net.minecraft.item.Item;

public final class BlockApi {

	public static int getIdFromBlock(Block blockIn) {
		return Block.getIdFromBlock(blockIn);
	}

	public static int getStateId(IBlockState state) {
		return Block.getStateId(state);
	}
	
	public static Block getBlockById(int id) {
		return Block.getBlockById(id);
	}
	
	public static IBlockState getStateById(int id) {
		return Block.getStateById(id);
	}
	
	public static Block getBlockFromItem(@Nullable Item itemIn) {
		return Block.getBlockFromItem(itemIn);
	}
	
	public static Block getBlockFromName(String name) {
		return Block.getBlockFromName(name);
	}
	
}
